package agent.strategy.strategies;

import agent.strategy.Strategy;
import api.API;
import utils.Display;

/**
 * User: Darren
 * Date: 18/05/13
 * Time: 3:34 PM
 */
public class ExchangeLogin extends Strategy {
    private API api;
    private Display display;

    public ExchangeLogin(API api, Display display) {
        this.api = api;
        this.display = display;
    }

    @Override
    public void run() {
        if (!api.login(display)) {
            System.exit(1);
        }
    }
}
